from django.db import models
from django.contrib.contenttypes.models import ContentType

class CategoryManager(models.Manager):
    def get_parents(self):
        """
        Returns the root category parents
        """
        return self.get(parent__isnull=True)
